Skip to content

feat(orm)!: transactions support#468

Draft
m4tx wants to merge 1 commit intomasterfrom
transactions
Draft

feat(orm)!: transactions support#468
m4tx wants to merge 1 commit intomasterfrom
transactions

Conversation

@m4tx
Copy link
Member

@m4tx m4tx commented Feb 1, 2026

No description provided.

@github-actions github-actions bot added C-lib Crate: cot (main library crate) C-macros Crate: cot-macros labels Feb 1, 2026
@codecov
Copy link

codecov bot commented Feb 1, 2026

Codecov Report

❌ Patch coverage is 76.90217% with 85 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
cot/src/db.rs 69.92% 53 Missing and 24 partials ⚠️
cot/src/auth/db.rs 75.00% 3 Missing and 1 partial ⚠️
cot/src/db/sea_query_db.rs 96.05% 0 Missing and 3 partials ⚠️
cot/src/db/query.rs 90.00% 0 Missing and 1 partial ⚠️
Flag Coverage Δ
rust 89.66% <76.90%> (-0.35%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
cot-macros/src/model.rs 96.36% <ø> (ø)
cot/src/db/impl_mysql.rs 100.00% <ø> (ø)
cot/src/db/impl_postgres.rs 100.00% <ø> (ø)
cot/src/db/impl_sqlite.rs 94.73% <ø> (ø)
cot/src/db/relations.rs 91.66% <100.00%> (ø)
cot/src/session/store/db.rs 85.93% <100.00%> (+4.85%) ⬆️
cot/src/db/query.rs 75.83% <90.00%> (+0.09%) ⬆️
cot/src/db/sea_query_db.rs 96.73% <96.05%> (-0.51%) ⬇️
cot/src/auth/db.rs 85.21% <75.00%> (+0.12%) ⬆️
cot/src/db.rs 77.99% <69.92%> (-8.27%) ⬇️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@github-actions
Copy link

github-actions bot commented Feb 1, 2026

🐰 Bencher Report

Branchtransactions
Testbedgithub-ubuntu-latest

🚨 1 Alert

BenchmarkMeasure
Units
ViewBenchmark Result
(Result Δ%)
Upper Boundary
(Limit %)
single_root_route_burst/single_root_route_burstLatency
milliseconds (ms)
📈 plot
🚷 threshold
🚨 alert (🔔)
21.17 ms
(+21.18%)Baseline: 17.47 ms
20.58 ms
(102.83%)

Click to view all benchmark results
BenchmarkLatencyBenchmark Result
milliseconds (ms)
(Result Δ%)
Upper Boundary
milliseconds (ms)
(Limit %)
empty_router/empty_router📈 view plot
🚷 view threshold
6.38 ms
(+7.95%)Baseline: 5.91 ms
7.00 ms
(91.19%)
json_api/json_api📈 view plot
🚷 view threshold
1.11 ms
(+8.05%)Baseline: 1.02 ms
1.17 ms
(94.74%)
nested_routers/nested_routers📈 view plot
🚷 view threshold
1.03 ms
(+8.79%)Baseline: 0.94 ms
1.07 ms
(95.90%)
single_root_route/single_root_route📈 view plot
🚷 view threshold
1.01 ms
(+11.90%)Baseline: 0.90 ms
1.03 ms
(98.32%)
single_root_route_burst/single_root_route_burst📈 view plot
🚷 view threshold
🚨 view alert (🔔)
21.17 ms
(+21.18%)Baseline: 17.47 ms
20.58 ms
(102.83%)

🐰 View full continuous benchmarking report in Bencher

let user = DatabaseUser::get_by_username(&mut transaction, "admin").await?;
if user.is_none() {
DatabaseUser::create_user(context.database(), "admin", "admin").await?;
DatabaseUser::create_user(&mut transaction, "admin", "admin").await?;

Check failure

Code scanning / CodeQL

Hard-coded cryptographic value Critical

This hard-coded value is used as
a password
.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-lib Crate: cot (main library crate) C-macros Crate: cot-macros

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant